package com.udistrital.framework.adminMenu.DTO;

import java.util.List;


public class MenuDTO {
	
	private Integer id;
	private int jerarquia;
	private int ordenIn;
	private boolean menu;
	private String url;
	private String nombre;
	private List<MenuDTO> listSub;
	
	
	public MenuDTO(Object[] objects) {
		this.id = objects[0]!=null ?(Integer)objects[0] : null;
		this.jerarquia = objects[1]!=null ?(Integer)objects[1] : null;
		this.ordenIn =  objects[2]!=null ?(Integer)objects[2] : null;
		this.menu =  objects[3]!=null ? true : false;
		this.url =  objects[4]!=null ?(String)objects[4] : null;
		this.nombre =  objects[5]!=null ?(String)objects[5] : null;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public int getJerarquia() {
		return jerarquia;
	}
	public void setJerarquia(int jerarquia) {
		this.jerarquia = jerarquia;
	}
	public int getOrdenIn() {
		return ordenIn;
	}
	public void setOrdenIn(int ordenIn) {
		this.ordenIn = ordenIn;
	}
	public boolean isMenu() {
		return menu;
	}
	public void setMenu(boolean menu) {
		this.menu = menu;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getNombre() {
		return nombre;
	}
	public void setNombre(String nombre) {
		this.nombre = nombre;
	}
	public List<MenuDTO> getListSub() {
		return listSub;
	}
	public void setListSub(List<MenuDTO> listSub) {
		this.listSub = listSub;
	}

}
